package com.iyjhsoc.game.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.iyjhsoc.game.dao.CompetitionSmallGameDAO;
import com.iyjhsoc.game.dao.TeamDAO;
import com.iyjhsoc.game.domain.VO.TeamVO;
import com.iyjhsoc.game.domain.entity.CompetitionSmallGameDO;
import com.iyjhsoc.game.domain.entity.TeamDO;
import com.iyjhsoc.game.domain.response.TeamResponse;
import com.iyjhsoc.game.service.TeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamServiceImpl extends ServiceImpl<TeamDAO, TeamDO> implements TeamService {

    @Autowired
    TeamDAO teamDAO;
    @Autowired
    CompetitionSmallGameDAO competitionSmallGameDAO;

    @Override
    public List<TeamResponse> getTeamMatchHero(TeamVO vo) {
        PageHelper.startPage(vo.getPageNum(),vo.getPageSize());
//        competitionSmallGameDAO.s
        List<TeamResponse> teamMatchHero = teamDAO.getTeamMatchHero(vo);
        return teamMatchHero;
    }
}
